﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WJP.DataPortal.WCF
{
    /// <summary>
    /// API请求
    /// </summary>
    [DataContract]
    [Serializable]
    public class ApiRequest
    {
        /// <summary>
        /// Api类型
        /// </summary>
        [DataMember]
        public string ApiType { get; set; }

        /// <summary>
        /// 所有的参数
        /// </summary>
        [DataMember]
        public ApiMethodParameter[] Parameters { get; set; }

        /// <summary>
        /// 方法名称
        /// </summary>
        [DataMember]
        public string Method { get; set; }

        /// <summary>
        /// 数据门户客户端上下文
        /// </summary>
        [DataMember]
        public HybridDictionary Context { get; set; } = new HybridDictionary();
    }
}
